package com.briup.jz.web.controller;

import com.briup.jz.bean.Address;
import com.briup.jz.service.IAddressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("address")
@Api(description = "地址管理接口")
public class AddressController {
    @Autowired
    private IAddressService addressService;
    @ApiOperation(value = "查看所有地址")
    @GetMapping("findAll")
    public List<Address> findAll(){
        return addressService.findAll();
    }

}
